package Test01;

import java.util.Scanner;

/**
 * ClassName:ID
 * Package:Test01
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/4/12 17:08
 * @Version 1.8
 */
public class IdTest01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的信息:");

        boolean flag = true;
       String num = sc.next();
       do {


           switch (num) {
               case  "name":
                   String name = sc.next();
                   System.out.println("您的姓名是：" + name);
                   break;
               case "idName":
                   String idName = sc.next();
                   System.out.println(" 您的学号是：" + idName);
                   break;
               case "age":
                   int age = sc.nextInt();
                   System.out.println("您的年龄是：" + age);
                   break;
               case "balance":
                   double balance = sc.nextDouble();
                   System.out.println("您的金额是：" + balance);
                   break;
               case "pone":
                   int phone = sc.nextInt();
                   System.out.println(" 您的电话号码是：" + phone);
                   break;
               case "x":
                   boolean x = sc.hasNext();
                   System.out.println("是否有婚姻 ：" + x);
                   break;
               case "tuichu":
                   flag = false;
                   String tuichu = sc.next();
                   System.out.println("退出"+ tuichu);
                   break;

               default:
                   System.out.println("输入非法");
                   break;

                 }
              }while (flag);
                sc.close();
        }
    }

